

function Page(){
	this.parameters = new Object();
}



Page.prototype.setContainerElement = function(element){
	this.containerEl = element;
}

/* Set the URL to the page. */
Page.prototype.setSourceUrl = function(sourceUrl){
	this.sourceUrl = sourceUrl;
}

/* Set the owning dialog. AKA setParent*/
Page.prototype.setOwner = function(owner){
	this.owner = owner;
}

/* Add or change a parameter before calling preload to have it sent with the request. */
Page.prototype.setParameter = function(key, value){
	this.parameters[key] = value;
}

/* Load the page. It may or may not be visible, depending on who owns focus at dialog load time. */
Page.prototype.preLoad = function(){
	new Ajax.Updater(this.element, this.sourceUrl, {
        parameters: this.parameters,
        insertion: Insertion.Bottom
	});
}
